
namespace GeneticAlgorithms.Factories
{
    /// <summary>
    /// Factory for genomes that contain a default constructor.
    /// </summary>
    public class DefaultGenomeFactory<TGenome> : IGenomeFactory<TGenome>
        where TGenome : new()
    {
        #region IGenomeFactory<TGenome,TGene> Members

        /// <summary>
        /// Creates a genome.
        /// </summary>
        /// <returns>A new genome object.</returns>
        public TGenome CreateGenome()
        {
            return new TGenome();
        }

        #endregion
    }
}
